#ifndef HTTPPROC_H
#define HTTPPROC_H

#include <QObject>

class QNetworkReply;
class QNetworkAccessManager;
class QHttpMultiPart;
class CHttpProc:public QObject
{
    Q_OBJECT
public:
    CHttpProc(QObject* parent=NULL);
    ~CHttpProc();

    void getTextFormData(QString strFieldName, QString strFieldValue);
    void getBMPFormData(QString strFieldName, QString strFileName, QString strNewFileName);


    void postLocalData(QStringList list);
    void postPulseWaveData(QString strSYS, QString strDIA, QString strPUL, void *pContext);

    void resPonseLocalData(QNetworkReply* reply);
    void resPonsePulseWave(QNetworkReply *reply);

signals:
    void sigPostIdInfo(QString strIdCard);
    void sigPostNext();

private slots:
    void slotPostIdInfo(QString strIdCard);
    void replyFinished(QNetworkReply *reply);

private:
    QNetworkAccessManager *m_pHttpManager;
    QHttpMultiPart* m_pHttpMultiPart;
};
#endif // HTTPPROC_H
